package technicalservices.database;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class MySQL extends Database {

	@Override
	public String getClassName() {
		return "com.mysql.jdbc.Driver";
	}

	@Override
	public Connection getConnection(String host, String user, String password, String database, int port)
			throws SQLException {
		return DriverManager.getConnection(
				"jdbc:mysql://" + host + ":" + port + "/" + database,
				user, password);
	}

}
